package com.googlecode.java_cl_parser;

import org.junit.Test;

@CLIEntry(
		nickName = "run",
		description = "I do lot's of things",
		version = "1.0"
)
public class FlagWithDefault
{
	@CLIOption(
		name = "tc",
		description = "",
		valueType = CLIOption.value_type.not_allowed,
		defaultValue = "tttt"
	)
	public void setThreadCount(String count)
	{
	}

	@CLIMain
	public void main()
	{
	}

	@Test(expected = InvalidCLIEntryException.class)
	public void testShortOptions() throws Exception
	{
		CommonsCLILauncher.mainWithInstance(new FlagWithDefault(), new String[]{});
	}
}